package com.pengtu.dao.history;

import org.springframework.stereotype.Repository;

import com.pengtu.dao.hibernate.HibernateDao;
import com.pengtu.entity.history.HistoryProject;
import com.pengtu.entity.project.ProjectInfo;

@Repository
public class HistoryProjectDao extends HibernateDao<HistoryProject, String> {

	/**
	 * 查询历史表
	 * findByHistoryProject:
	 * 适用:
	 * @param projectInfo
	 * @param status
	 * @return 
	 * @exception 
	 * @since  1.0.0
	 */
	public HistoryProject findByHistoryProject(ProjectInfo projectInfo,
			String status) {
		String hql = "from HistoryProject t where t.projectInfo = ? and t.status = ? and t.endFlag = '0' and t.delFlag = '0'";
		return super.findUnique(hql, projectInfo,status);
	}

}
